package org.spring.springboot.service.impl;



        import org.spring.springboot.dao.PatternDao;
        import org.spring.springboot.domain.Pattern;
        import org.spring.springboot.service.IPatternService;
        import org.springframework.beans.factory.annotation.Autowired;
        import org.springframework.stereotype.Service;

        import java.util.List;


@Service
public class PatternServiceImpl implements IPatternService {

    @Autowired
    private PatternDao dao;

    public List<Pattern> selectAll(String userid) {
        List<Pattern> list = dao.selectAll(userid);
        return list;
    }

    public Pattern selectOne(String name) {
        return dao.selectOne(name);
    }
    public void save(Pattern pat) {
        dao.save(pat);
    }
    public void delete(String name) {
        dao.delete(name);
    }
}
